Skip to content

Bound PollTransaction with a timeout in the Go issue-an-asset example - #3178

Open
yash251 wants to merge 1 commit into
stellar:mainfrom
yash251:yash/3168-poll-transaction-timeout
Open

yash251 wants to merge 1 commit into
stellar:mainfrom
yash251:yash/3168-poll-transaction-timeout

Conversation

@yash251

@yash251 yash251 commented Nov 21, 2026

Copy link
Copy Markdown

Fixes #3168

The Go tab in docs/tokens/how-to-issue-an-asset.mdx called client.PollTransaction(ctx, …) with ctx := context.Background(). PollTransaction polls until SUCCESS/FAILED or until the context ends, so a transaction that never lands kept the example polling forever.

The example now polls with context.WithTimeout(ctx, 30*time.Second) and, on context.DeadlineExceeded, reports the status as unknown rather than failed, the same pattern as the Go tab in docs/build/guides/transactions/fee-bump-transactions.mdx. Adds the errors and time imports.

Checked: I extracted the edited Go example into a module with github.com/stellar/go-stellar-sdk@v0.9.0; go vet and go build both pass.

@mintlify

mintlify Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 2ac796f.

Approve preview

@stellar-doxie

stellar-doxie Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from Doxie.

I saw this PR. Nobody has called me in, so I will not review it yet.

How to reach me:

  • Anyone with write permission can call me in with a /triage comment or the bot:take label.
  • The PR author can send me away with /triage stop. People with write permission can also use the bot:hands-off label.
  • A review request to a maintainer does not call me in. It asks for that person's judgment.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Go example in how-to-issue-an-asset polls PollTransaction with no deadline

1 participant